home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
sidekick.swf
/
scripts
/
DefineButton2_1282
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2007-10-01
|
2KB
|
56 lines
on(release){
var §\x01§ = 416;
while(true)
{
if(eval("\x01") == 416)
{
set("\x01",eval("\x01") + 134);
§§push(true);
}
else if(eval("\x01") == 550)
{
set("\x01",eval("\x01") - 62);
if(§§pop())
{
set("\x01",eval("\x01") + 273);
}
}
else
{
if(eval("\x01") != 761)
{
break;
}
set("\x01",eval("\x01") - 318);
}
}
if(eval("\x01") == 443)
{
set("\x01",eval("\x01") + 283);
actionkey2.gotoAndStop(200);
Key.addListener(this);
onKeyDown = function()
{
if(game_so.data.player1Right != Key.getCode() && game_so.data.player1Up != Key.getCode() && game_so.data.player1Left != Key.getCode() && game_so.data.player1Down != Key.getCode() && game_so.data.player1Action != Key.getCode() && game_so.data.player2Up != Key.getCode() && game_so.data.player2Left != Key.getCode() && game_so.data.player2Down != Key.getCode())
{
actionKey = Key.getCode();
game_so.data.player2Action = actionKey;
actionkey2.gotoAndStop(actionKey);
onKeyDown = null;
}
else
{
msg.gotoAndPlay("error");
}
};
}
else if(eval("\x01") == 488)
{
set("\x01",eval("\x01") + 273);
}
else if(eval("\x01") == 726)
{
set("\x01",eval("\x01") - 726);
}
}